<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <!--CDN links for TweenLite, CSSPlugin, and EasePack-->
  <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.4.0/gsap.min.js"></script>

  <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.4.0/ScrollTrigger.min.js"></script>

  <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.3.0/ScrollToPlugin.min.js"></script>

  <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.3.0/CSSRulePlugin.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.3.0/Draggable.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.3.0/EaselPlugin.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.3.0/MotionPathPlugin.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.3.0/PixiPlugin.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.3.0/TextPlugin.min.js"></script>

</head>
<style>
  nav {
    position: fixed;
    top: 10vmin;
    right: 20vmin;
    width: 15em;
    height: 10vh;
    display: flex;
    justify-content: space-between;
    align-items: start;
    z-index: 100;
  }

  /* Animate the line from the left */
  nav a {
    position: relative;
    color: #fff59a;
    text-decoration: none;
    padding: 0 4px 3px 4px;
    transition: color 0.3s ease;
  }

  nav a:hover {
    color: white;
  }

  nav a::before {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 1.5px;
    bottom: 0;
    left: 0;
    background: white;
    transform: scaleX(0);
    transform-origin: top right;
    transition: transform 0.2s ease;
  }

  nav a:hover::before {
    transform: scaleX(1);
    transform-origin: top left;
  }

  .header-circle {
    width: 60vmin;
    height: 60vmin;
    margin-top: -30vmin;
    margin-left: 10%;
  }

  .outer-circle-large {
    width: 100%;
    height: 100%;
    border: 0.15vmin solid lemonchiffon;
    border-radius: 50%;
    position: relative;
  }

  .outer-circle-large-inner {
    width: 50%;
    height: 50%;
    border: 0.15vmin solid lemonchiffon;
    border-radius: 50%;
    position: absolute;
    top: 5%;
    left: 40%;
  }

  .outer-circle-large-inner-inner {
    width: 10%;
    height: 10%;
    border: 0.15vmin solid lemonchiffon;
    border-radius: 50%;
    position: absolute;
    top: 5%;
    left: 40%;
  }

  .circle {
    height: 20vmin;
    width: 20vmin;
    margin-top: 15vh;
    margin-left: 60%;
  }

  .outer-circle-medium {
    width: 100%;
    height: 100%;
    border: 0.15vmin solid lemonchiffon;
    border-radius: 50%;
    position: relative;
  }

  .inner-circle-medium {
    width: 40%;
    height: 40%;
    border: 0.15vmin solid lemonchiffon;
    border-radius: 50%;
    position: absolute;
    top: 55%;
    left: 20%;
    transform: translate(-38%, -103.5%);
  }

  .triangle-one {
    margin-left: 20%;
  }

  .triangle-two {
    position: absolute;
    top: 25%;
    left: 80%;
    opacity: 0.5;
  }

  .title {
    width: 50%;
    height: 15vw;
    padding-bottom: 1rem;
    margin: 15vh auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
  }

  .title-background {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-image: linear-gradient(30deg,
        rgba(0 205 205 / 0.5),
        rgba(255 250 205 / 0.7),
        rgba(0 280 205 / 0.5));
    background-size: cover;
    background-position: center center;
    border: 0.25vmin solid rgba(0 280 205 / 0.3);
    border-radius: 1rem;
  }

  h1.head,
  h1.end,
  h6.end {
    font-family: "Playfair Display", serif;
    font-weight: 400;
    text-align: center;
    letter-spacing: 1vmin;
    color: #fff;
  }

  h1.head {
    font-size: 15vmin;
    line-height: 1;
    margin: 5vmin 0;
    mix-blend-mode: difference;
  }

  h1.end,
  h6.end {
    color: rgba(255 250 205 / 0.7);
  }

  h1.end {
    font-size: 5vmin;
  }

  h1.end .char,
  h6.end .char {
    transition: transform 1s cubic-bezier(0.3, 0, 0.3, 1), opacity 1s linear;
    transition-delay: calc(120ms * var(--char-index));
  }

  h1.end[data-scroll="out"] .char {
    opacity: 0;
    transform: translateX(5em) scale(0.15);
  }

  h6.end[data-scroll="out"] .char {
    opacity: 0;
    transform: translateY(3em) scale(0.15);
  }

  .bottom {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-content: end;
    margin-bottom: 4rem;
  }

  body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #333;
    background-image: linear-gradient(to right, transparent 19px, #444 1px),
      linear-gradient(to bottom, transparent 19px, #444 1px);
    background-size: 20px 20px;
    background-attachment: fixed;
    overflow-x: hidden;
  }

  * {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }
</style>

<body>
  <nav>
    <a href="#!">Home</a>
    <a href="#!">About</a>
    <a href="#!">Contact</a>
  </nav>

  <div class="header-circle">
    <div class="outer-circle-large">
      <div class="outer-circle-large-inner">
      </div>
    </div>
  </div>

  <svg class="triangle-two" width="200" height="200">
    <path stroke="white" stroke-width="0.5" fill="none" d="M 1 1 H 50 L 25 70 L 1 1" />
  </svg>

  <div class="title">
    <div class="title-background"></div>
    <h1 class="head">Scroll it</h1>
  </div>

  <div class="circle">
    <div class="outer-circle-medium">
      <div class="inner-circle-medium"></div>
    </div>
  </div>

  <svg class="triangle-one" width="200" height="200">
    <path stroke="white" stroke-width="0.5" fill="none" d="M 1 1 H 200 L 100 140 L 1 1" />
  </svg>

  <div class="bottom">
    <h1 class="end" data-splitting>The End</h1>
    <h6 class="end" data-splitting>Design by BlogFire&#8482;</h6>
  </div>


</body>
<script>
  gsap.registerPlugin(ScrollTrigger);

  gsap.from("nav", {
    duration: "4",
    xPercent: "200",
    ease: "linear",
    scrollTrigger: {
      trigger: "nav",
      markers: false,
      start: "top 10%",
      end: "bottom 1%",
      scrub: 2
    }
  });
  gsap.from(".outer-circle-large, .outer-circle-large-inner", {
    duration: "2",
    rotate: "360",
    ease: "linear",
    scrollTrigger: {
      trigger: ".header-circle",
      markers: false,
      start: "top top",
      end: "bottom top",
      scrub: 8
    }
  });
  gsap.from(".outer-circle-medium", {
    duration: "1.5",
    rotate: "-360",
    ease: "linear",
    scrollTrigger: {
      trigger: ".circle",
      markers: false,
      start: "top bottom",
      end: "bottom top",
      scrub: 2
    }
  });
  gsap.to(".outer-circle-medium", {
    duration: "1",
    scale: "4",
    opacity: "0",
    ease: "linear",
    scrollTrigger: {
      trigger: ".circle",
      markers: false,
      start: "top bottom",
      end: "bottom top",
      scrub: 4
    }
  });
  gsap.to(".head", {
    duration: "1",
    xPercent: "100",
    rotate: "60",
    opacity: "0",
    ease: "linear",
    scrollTrigger: {
      trigger: ".title",
      markers: false,
      start: "top 30%",
      end: "bottom top",
      scrub: 4,
      pin: true
    }
  });
  gsap.to(".title-background", {
    duration: "1",
    xPercent: "-100",
    yPercent: "500",
    rotate: "-60",
    rotateX: "320",
    scale: 0,
    opacity: "0",
    ease: "linear",
    scrollTrigger: {
      trigger: ".title-background",
      markers: false,
      start: "top 30%",
      end: "bottom top",
      scrub: 4
    }
  });
  gsap.to(".triangle-one", {
    duration: "2",
    yPercent: "-300",
    xPercent: "250",
    rotate: "-160",
    scale: ".5",
    opacity: "0.15",
    ease: "linear",
    scrollTrigger: {
      trigger: ".title-background",
      markers: false,
      start: "top 30%",
      end: "bottom top",
      scrub: 2
    }
  });
  gsap.to(".triangle-two", {
    duration: "2",
    yPercent: "470",
    xPercent: "-250",
    rotate: "-180",
    scale: "1.5",
    opacity: "1",
    ease: "linear",
    scrollTrigger: {
      trigger: ".title-background",
      markers: false,
      start: "top 30%",
      end: "bottom top",
      scrub: 10
    }
  });

  Splitting();
  ScrollOut({
    targets: "[data-splitting]"
  });
</script>

</html>